require 'models/google_project_host'


# this mock basically overrides the URL calls so that we use our local
# copy of the google project hosting page.   To hit the live site just change
# RUGBY_PROJECT_FILE calls to use the RUGBY_PROJECT_URL.
class GoogleProjectHost
  RUGBY_PROJECT_URL = "http://code.google.com/p/rugby/issues/"
  RUGBY_PROJECT_FILE = "/Users/eric/Documents/code/oss/rugby/trunk/rugby/test/unit/google_code_issue_list.html"
  
  
  # override the URL to use our local copy!
  def initialize(url)
    @list_url = RUGBY_PROJECT_FILE
    @detail_url = RUGBY_PROJECT_FILE
  end  
  
  # override the calls that add ?myparm=something so 
  # we keep a clean file URL.
  def build_url(url_to_build)
    @list_url
  end
end